package com.zhijiaoyun.service;

import com.zhijiaoyun.model.Banner;
import com.zhijiaoyun.service.core.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public interface IBannerService extends IBaseService<Banner> {

    /**
     * list by params
     *
     * @param name
     * @param bannerType
     * @return
     */
    List<Banner> getByParams(String name, Integer bannerType);

    /**
     * delete
     *
     * @param banner
     */
    void deleteBanner(Banner banner);

    /**
     * get by title not id
     *
     * @param bannerId
     * @param title
     * @return
     */
    Banner getBannerByTitleNotBannerId(Long bannerId, String title);

    /**
     * update
     *
     * @param banner
     */
    void modifyBanner(Banner banner);

    /**
     * add
     *
     * @param banner
     */
    void addBanner(Banner banner);

    /**
     * list by params
     *
     * @param title
     * @param bannerType
     * @return
     */
    Map<String, Object> listByParams(String title, Integer bannerType);
}
